package club.grc.service.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/***
 * Title ApiGateway
 * Description 网关启动类
 * Author liyunqing
 * Version 1.0.0
 * CreateTime 2024/10/15 16:52
 **/
@SpringBootApplication
//这个是开启nacos客户端，好像可以不用加，我们引入nacos注册中心，好像默认就开启的。个人习惯加上，一看就明白了服务注册到nacos注册中心
@EnableDiscoveryClient
public class ApiGateway {
    public static void main(String[] args) {
        SpringApplication.run(ApiGateway.class, args);
        System.out.println("启动OK！！！");
    }
}
